/*
 * @(#)SharedCollection.java
 * 
 * Copyright(C) 2004 Yujin Kim
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.netexplode.jtunes.model.media;

import java.io.IOException;

import org.cdavies.itunes.Database;
import org.cdavies.itunes.ItunesConnection;
import org.cdavies.itunes.ItunesHost;
import org.cdavies.itunes.Track;

/**
 * <code>SharedCollection</code> represents .....
 * 
 * @author ykim
 * @version $Revision: 1.1 $
 * @since 0.1
 */
public class SharedCollection extends MediaCollection {

	private ItunesConnection connection;

	private Database database;

	private ItunesHost itunesHost;

	private Track[] tracks;
	
	public void init() throws IOException {
		// do nothing
	}

	/**
	 * @return Returns the connection.
	 */
	public ItunesConnection getConnection() {
		return this.connection;
	}

	/**
	 * @param connection The connection to set.
	 */
	public void setConnection(ItunesConnection connection) {
		this.connection = connection;
	}

	/**
	 * @return Returns the database.
	 */
	public Database getDatabase() {
		return this.database;
	}

	/**
	 * @param database The database to set.
	 */
	public void setDatabase(Database database) {
		this.database = database;
	}

	/**
	 * @return Returns the itunesHost.
	 */
	public ItunesHost getItunesHost() {
		return this.itunesHost;
	}

	/**
	 * @param itunesHost The itunesHost to set.
	 */
	public void setItunesHost(ItunesHost itunesHost) {
		this.itunesHost = itunesHost;
	}

	/**
	 * @return Returns the tracks.
	 */
	public Track[] getTracks() {
		return this.tracks;
	}

	/**
	 * @param tracks The tracks to set.
	 */
	public void setTracks(Track[] tracks) {
		this.tracks = tracks;
	}
}